﻿<%@ Control Language="C#" AutoEventWireup="true" CodeFile="LoginControl.ascx.cs"
    Inherits="Controls_LoginControl" %>
    
<table>
    <tr>
        <td colspan="3" class="TitleInformation"><strong>Login</strong></td>
    </tr>
    <tr>
        <td width="80">
            User Name
        </td>
        <td>
            <asp:TextBox ID="txtUserName" runat="server" Width="100" ValidationGroup="Login"></asp:TextBox>
        </td>
        <td>
            <asp:RequiredFieldValidator ID="valUserName" runat="server" ErrorMessage="Enter username"
                Text="*" ControlToValidate="txtUserName" ValidationGroup="Login" ForeColor="Gold"></asp:RequiredFieldValidator>
        </td>
    </tr>
    <tr>
        <td>
            Password
        </td>
        <td>
            <asp:TextBox ID="txtPassword" runat="server" Width="100" ValidationGroup="Login" TextMode="Password"></asp:TextBox>
        </td>
        <td>
            <asp:RequiredFieldValidator ID="valPassword" runat="server" ErrorMessage="Enter password"
                Text="*" ControlToValidate="txtPassword" ValidationGroup="Login" ForeColor="Gold"></asp:RequiredFieldValidator>
        </td>
    </tr>
    <tr>
        <td colspan="3" align="right">
            &nbsp;
        </td>
    </tr>
    <tr>
        <td colspan="3" align="justify">
            &nbsp;<asp:Button ID="btnSignIn" runat="server" Text="Sign In" 
                ValidationGroup="Login" OnClick="btnSignIn_Click" />
            <asp:Button ID="btnReset" runat="server" Text="Reset" 
                CausesValidation="False" OnClick="btnReset_Click" /></td>
    </tr>
    <tr>
        <td align="justify" colspan="3">
            <asp:Label ID="lblMessage" runat="server" ForeColor="Gold"></asp:Label></td>
    </tr>
    <tr>
        <td align="justify" colspan="3">
            <asp:ValidationSummary ID="loginValidationSummary" runat="server" 
                HeaderText="Please check errors below" ValidationGroup="Login" ForeColor="Gold" />
        </td>
    </tr>
</table>
